package com.example.informationEntry.service;

import com.example.informationEntry.entity.NaEmergencyContactRelationship;

import java.util.List;
import java.util.Map;

/**
 * 紧急联系人关系(NaEmergencyContactRelationship)表服务接口
 *
 * @author makejava
 * @since 2019-04-08 11:20:34
 */
public interface NaEmergencyContactRelationshipService {

    /**
     * 通过ID查询单条数据
     *
     * @param emergencyContactRelationshipId 主键
     * @return 实例对象
     */
    NaEmergencyContactRelationship queryById(String emergencyContactRelationshipId);

    /**
     * 查询多条数据
     *
     * @param emergencyContactRelationship 联系人关系
     * @return 对象列表
     */
    List<NaEmergencyContactRelationship> queryAllByName(String emergencyContactRelationship);

    /**
     * 查询多条数据
     * @param naEmergencyContactRelationship 实例对象
     * @return list集合
     */
    List<NaEmergencyContactRelationship> queryAll(NaEmergencyContactRelationship naEmergencyContactRelationship);

    /**
     * 新增数据
     *
     * @param naEmergencyContactRelationship 实例对象
     * @return 实例对象
     */
    NaEmergencyContactRelationship insert(NaEmergencyContactRelationship naEmergencyContactRelationship);

    /**
     * 修改数据
     *
     * @param naEmergencyContactRelationship 实例对象
     * @return 实例对象
     */
    NaEmergencyContactRelationship update(NaEmergencyContactRelationship naEmergencyContactRelationship);

    /**
     * 通过主键删除数据
     *
     * @param emergencyContactRelationshipId 主键
     * @return 是否成功
     */
    boolean deleteById(String emergencyContactRelationshipId);

    /**
     * K ID  V 值
     *
     * @return 规整后的数据
     */
    Map<String,String> queryNumberToName();

}